def run(params:list[str]):
    from ApiTools import apiTools,apiBase
    
    collects=apiBase.argv_array(params,1,'database/tools;',';')
    usr_prompt=apiBase.argv(params,2,"Read the table ddl. uri is postgresql://apjaimvp:mvppassword@10.220.130.88:55432/pubs3postgres, The name of the table is titleauthor")
    # 获取vctid，ent_vector表id的信息,参数定义在ent_vector记录里面
    ids=apiBase.argv_array(params,3)

    try:
        tol = apiTools.load_tol()
        vcts=apiTools.load_models().get_vects(collects,ids)
        ret=tol.tol_chat(vcts,usr_prompt,None)
        #print(ret)
        return ret
    except Exception as e:
        return f"function error:{e}"
#run([])